<?php
!defined('M_P') && exit('Forbidden');
$SCR = 'info';
$baseurl = $houseBaseUrl."q=pricedetail";
InitGP(array('hid','page'),'GP',2);

include_once D_P.'data/bbscache/house_config.php';
$houseService = house::loadClass('house');/* @var $houseService PW_House */
$houseService->setHid($hid);

if (!$houseService->init(true)) {
	Showmsg('该楼盘不存在!');
}
$houseService->setBanner();
$houseService->setNav();

$houseinfo =& $houseService->info;

$pw_pricedetaidb = House::loadDB('pricedetail');

$pw_pricedetaidb->setBasename($baseurl."&hid=".$hid);
$price = $pw_pricedetaidb->queryPricedetailByHid($hid,$page);
$pageCache = getPageCache('price',$houseinfo['aveprice'],$hid);
$pageCache->init();

/* SEO */
$_definedSeo = array('title' => $houseinfo['seotitle'] , 'metaDescription' => $houseinfo['seokeywords'] , 'metaKeywords' => $houseinfo['seodescription'] );
$_seopage = 'read';
$_seoname = $houseinfo['name'];

require_once(M_P.'require/header.php');
require_once PrintEot('pricedetail');
footer();
?>